﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类INSPECTION_STATION_INFO
     ///</summary>
     public class INSPECTION_STATION_INFO
     {
         private int __ID=0 ;
         private string __STATION_NAME=string.Empty ;
         private string __STATION_NO=string.Empty ;
         private string __STATION_ADDRESS=string.Empty ;
         private string __LICENSE_NO=string.Empty ;
         private string __STATION_TEL=string.Empty ;
         private string __STATION_POSTALCODE=string.Empty ;
         private string __MANAGERS_NAME=string.Empty ;
         private string __MANAGERS_ID_NO=string.Empty ;
         private string __MANAGERS_TEL=string.Empty ;
         private string __DEV_MANAGERS_NAME=string.Empty ;
         private string __DEV_MANAGERS_ID_NO=string.Empty ;
         private string __DEV_MANAGERS_TEL=string.Empty ;
         private string __LICENSE_SDATE=string.Empty ;
         private string __LICENSE_EDATE=string.Empty ;
         private string __REMARK=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public INSPECTION_STATION_INFO()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("STATION_NAME",false);
             this.__Changed.Add("STATION_NO",false);
             this.__Changed.Add("STATION_ADDRESS",false);
             this.__Changed.Add("LICENSE_NO",false);
             this.__Changed.Add("STATION_TEL",false);
             this.__Changed.Add("STATION_POSTALCODE",false);
             this.__Changed.Add("MANAGERS_NAME",false);
             this.__Changed.Add("MANAGERS_ID_NO",false);
             this.__Changed.Add("MANAGERS_TEL",false);
             this.__Changed.Add("DEV_MANAGERS_NAME",false);
             this.__Changed.Add("DEV_MANAGERS_ID_NO",false);
             this.__Changed.Add("DEV_MANAGERS_TEL",false);
             this.__Changed.Add("LICENSE_SDATE",false);
             this.__Changed.Add("LICENSE_EDATE",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__STATION_NAME =string.Empty;
             this.__STATION_NO =string.Empty;
             this.__STATION_ADDRESS =string.Empty;
             this.__LICENSE_NO =string.Empty;
             this.__STATION_TEL =string.Empty;
             this.__STATION_POSTALCODE =string.Empty;
             this.__MANAGERS_NAME =string.Empty;
             this.__MANAGERS_ID_NO =string.Empty;
             this.__MANAGERS_TEL =string.Empty;
             this.__DEV_MANAGERS_NAME =string.Empty;
             this.__DEV_MANAGERS_ID_NO =string.Empty;
             this.__DEV_MANAGERS_TEL =string.Empty;
             this.__LICENSE_SDATE =string.Empty;
             this.__LICENSE_EDATE =string.Empty;
             this.__REMARK =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["STATION_NAME"] = false;
             this.__Changed["STATION_NO"] = false;
             this.__Changed["STATION_ADDRESS"] = false;
             this.__Changed["LICENSE_NO"] = false;
             this.__Changed["STATION_TEL"] = false;
             this.__Changed["STATION_POSTALCODE"] = false;
             this.__Changed["MANAGERS_NAME"] = false;
             this.__Changed["MANAGERS_ID_NO"] = false;
             this.__Changed["MANAGERS_TEL"] = false;
             this.__Changed["DEV_MANAGERS_NAME"] = false;
             this.__Changed["DEV_MANAGERS_ID_NO"] = false;
             this.__Changed["DEV_MANAGERS_TEL"] = false;
             this.__Changed["LICENSE_SDATE"] = false;
             this.__Changed["LICENSE_EDATE"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[STATION_NAME]的数据
         /// </summary>
         public string STATION_NAME
         {
              set{ __STATION_NAME = value.Replace("'","’"); __Changed["STATION_NAME"] = true;}
              get{return __STATION_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[STATION_NO]的数据
         /// </summary>
         public string STATION_NO
         {
              set{ __STATION_NO = value.Replace("'","’"); __Changed["STATION_NO"] = true;}
              get{return __STATION_NO;}
         }
         /// <summary>
         ///设置或获取类中的[STATION_ADDRESS]的数据
         /// </summary>
         public string STATION_ADDRESS
         {
              set{ __STATION_ADDRESS = value.Replace("'","’"); __Changed["STATION_ADDRESS"] = true;}
              get{return __STATION_ADDRESS;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_NO]的数据
         /// </summary>
         public string LICENSE_NO
         {
              set{ __LICENSE_NO = value.Replace("'","’"); __Changed["LICENSE_NO"] = true;}
              get{return __LICENSE_NO;}
         }
         /// <summary>
         ///设置或获取类中的[STATION_TEL]的数据
         /// </summary>
         public string STATION_TEL
         {
              set{ __STATION_TEL = value.Replace("'","’"); __Changed["STATION_TEL"] = true;}
              get{return __STATION_TEL;}
         }
         /// <summary>
         ///设置或获取类中的[STATION_POSTALCODE]的数据
         /// </summary>
         public string STATION_POSTALCODE
         {
              set{ __STATION_POSTALCODE = value.Replace("'","’"); __Changed["STATION_POSTALCODE"] = true;}
              get{return __STATION_POSTALCODE;}
         }
         /// <summary>
         ///设置或获取类中的[MANAGERS_NAME]的数据
         /// </summary>
         public string MANAGERS_NAME
         {
              set{ __MANAGERS_NAME = value.Replace("'","’"); __Changed["MANAGERS_NAME"] = true;}
              get{return __MANAGERS_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[MANAGERS_ID_NO]的数据
         /// </summary>
         public string MANAGERS_ID_NO
         {
              set{ __MANAGERS_ID_NO = value.Replace("'","’"); __Changed["MANAGERS_ID_NO"] = true;}
              get{return __MANAGERS_ID_NO;}
         }
         /// <summary>
         ///设置或获取类中的[MANAGERS_TEL]的数据
         /// </summary>
         public string MANAGERS_TEL
         {
              set{ __MANAGERS_TEL = value.Replace("'","’"); __Changed["MANAGERS_TEL"] = true;}
              get{return __MANAGERS_TEL;}
         }
         /// <summary>
         ///设置或获取类中的[DEV_MANAGERS_NAME]的数据
         /// </summary>
         public string DEV_MANAGERS_NAME
         {
              set{ __DEV_MANAGERS_NAME = value.Replace("'","’"); __Changed["DEV_MANAGERS_NAME"] = true;}
              get{return __DEV_MANAGERS_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[DEV_MANAGERS_ID_NO]的数据
         /// </summary>
         public string DEV_MANAGERS_ID_NO
         {
              set{ __DEV_MANAGERS_ID_NO = value.Replace("'","’"); __Changed["DEV_MANAGERS_ID_NO"] = true;}
              get{return __DEV_MANAGERS_ID_NO;}
         }
         /// <summary>
         ///设置或获取类中的[DEV_MANAGERS_TEL]的数据
         /// </summary>
         public string DEV_MANAGERS_TEL
         {
              set{ __DEV_MANAGERS_TEL = value.Replace("'","’"); __Changed["DEV_MANAGERS_TEL"] = true;}
              get{return __DEV_MANAGERS_TEL;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_SDATE]的数据
         /// </summary>
         public string LICENSE_SDATE
         {
              set{ __LICENSE_SDATE = value.Replace("'","’"); __Changed["LICENSE_SDATE"] = true;}
              get{return __LICENSE_SDATE;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_EDATE]的数据
         /// </summary>
         public string LICENSE_EDATE
         {
              set{ __LICENSE_EDATE = value.Replace("'","’"); __Changed["LICENSE_EDATE"] = true;}
              get{return __LICENSE_EDATE;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
